
module.exports = {
  PORT: 5000,
  DATABASE: {
    database: 'nodetest',
    user: 'root',
    password: 'aaaa',
    options: {
      host: 'localhost', // 连接的 host 地址
      dialect: 'mysql', // 连接到 mysql
      timezone: '+08:00',
      logging: false,
      pool: {
        max: 5,
        min: 0,
        idle: 10000
      },
      define: {
        freezeTableName: true, //禁止自动修改表名
        timestamps: true, //不需要添加 createdAt 和 updatedAt 两个时间戳字段
        charset: 'utf8',
        collate: 'utf8_general_ci',
      }
    }
  }
}